import { Route, Switch } from 'react-router-dom'
import * as React from 'react'
import About from 'components/About'
import NotFind from 'components/error/NotFind'
import Main from 'pages/WordCard'
import WordConstructor from 'pages/WordConstructor'
import LoginDemo from 'pages/FormDemo'


export function Routes() {
  return (
    <Switch>
      <Route exact={true} path="/" component={Main} />
      <Route path="/word" component={Main} />
      <Route path="/wordedit" component={WordConstructor} />
      <Route path="/about" component={About} />
      <Route path="/login" component={LoginDemo} />
      <Route component={NotFind} />
    </Switch>
  )
}
